#!/bin/bash
# 设置录屏时长(ctrl + alt + shift + R启动/停止录制)
function usage () {
    echo "$( basename $0 ) <seconds>"
    exit 1
}

if [ $# -ne 1 ]
then
    usage
fi

gsettings set org.gnome.settings-daemon.plugins.media-keys max-screencast-length $1
